package com.serviceImpl;

import com.domain.Employee;
import com.dao.EmployeeDao;
import com.server.EmployeeService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service("employeeService")
public class EmployeeServiceImpl implements  EmployeeService{

    @Resource(name="employeeDao")
    private EmployeeDao employeeDao;

    public Employee findEmployeeByNumber(String number){
        return employeeDao.findEmployeeByNumber(number);
    }

    public Employee findLoginEmployee(String number,String password) {
        return employeeDao.findLoginEmployee(number,password);
    }

    public int updateEmployee(String number,String tel,String email,String RTX,Integer infoway){
        return employeeDao.updateEmployee(number,tel,email,RTX,infoway);
    }

}
